//
//  WordSplitter.m
//  LineByLine
//
//  Created by 병철 김 on 11. 11. 8..
//  Copyright (c) 2011 __MyCompanyName__. All rights reserved.
//

#import "WordSplitter.h"

@implementation WordSplitter
- (NSArray*) splitWords:(NSString*) sentence {
    return nil;
}
@end


@implementation SpaceWordSplitter
- (NSArray*) splitWords:(NSString*) sentence {
    return [[sentence stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] componentsSeparatedByString:@" "];
}
@end


@implementation EnglishWordSplitter
- (NSArray*) splitWords:(NSString*) sentence {
    return [[sentence stringByTrimmingCharactersInSet:[NSCharacterSet whitespaceAndNewlineCharacterSet]] componentsSeparatedByString:@" "];
}
@end